package com.zelin.listener;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * Created by WF on 2020/12/21 15:56
 */
//@Component
//@RabbitListener(queues = "shz")
public class Consumer06 {
    @RabbitHandler
    public void getMessage(String message){
        System.out.println("Queue名为shz的监听方收到消息-->RoutingKey--aa.log：" + message);
    }
}
